package com.ziyucoding.springboot.labs.lab10.seatdemo.atscfeign.productservice.service;

/**
 * 商品 service接口
 *
 * @author ziyucoding
 * @date 2022-11-03
 **/
public interface ProductService {

    /**
     * 扣减库存
     *
     * @param productId
     * @param amount
     * @return void
     **/
    void reduceStock(Long productId, Integer amount) throws Exception;
}
